package wangxiaotao.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@Data
@Component
@PropertySource({"classpath:pay.properties"})
@ConfigurationProperties(prefix = "alipay")
public class AliPayProperties {
    /**
     * 网关
     */
    private String gatewayUrl;
    /**
     * 应用ID
     */
    private String appId;
    /**
     * 应用私钥
     */
    private String privateKey;
    /**
     * 支付宝公钥
     */
    private String alipayPublicKey;
    /**
     * 签名方式
     * RSA,RSA2
     */
    private String signType;
    /**
     * 支付异步回调地址
     */
    private String returnUrl;
    private String notifyUrl;

    private String charset;
    /**
     * 订单过期时间
     */
    private String timeoutExpress;

}
